<div id="content">
	<h2>Avancement</h2>
	<?php if(count($aiassTasksList) !== 0): ?>
		<ul class="todoTask" >
		<?php foreach($aiassTasksList as $asmTask): ?>
			<?php
			switch($asmTask['statusTask']){
				case 1:
					$sColorStatus = '#900';
				break;
				case 2:
					$sColorStatus = '#090';
				break;
				case 3:
					$sColorStatus = '#009';
				break;
			}

			$iTimestampBegin = strtotime($asmTask['dateBeginTask']);
			$iTimestampEnd = strtotime($asmTask['dateEndTask']);
			if($iTimestampEnd == ''){
				$sDateEnd = '';
			}else{
				$sDateEnd = ' - F: '.date('d/m/Y', $iTimestampEnd);
			}
			?>
			<li style="color:<?php echo $sColorStatus ?>">
				<b><?php echo $asmTask['labelTask'] ?></b><span style="font-size:8px">[<?php echo $asmTask['priorityTask'] ?>]</span>  :<br />
				<span style="font-size:11px;float:right">(D: <?php echo date('d/m/Y', $iTimestampBegin).$sDateEnd ?>)</span><br />
				<?php echo nl2br($asmTask['descriptionTask']) ?>
			</li>
		<?php endforeach; ?>
		</ul>
	<?php else: ?>
		<p>Aucune tâche n'a été créée.</p>
	<?php endif; ?>
	<h4>Légende :</h4>
	<p>
	<span style="color:#900">Tâche à faire</span><br />
	<span style="color:#090">Tâche effectuée</span><br />
	<span style="color:#009">Tâche en cours</span><br />
	</p>
</div>